package PDFd.Layer;

import android.view.KeyEvent;

/**
 * Allows a Layer to recieve KeyEvents.
 * When a layer is brought into focus it will ask this interface if it should show the user a keyboard.
 * 
 * @author mckaym
 *
 */
/**
* <p>Title: LayerKeyEvent</p>
* <p>Description:Allows a Layer to recieve KeyEvents.When a layer is brought into focus it will
*  ask this interface if it should show the user a keyboard.
* interface or LayerMotionEvent </p>
* @author Matt, Tom, Andrew, Kong
* @email matt.mckay@my.uwrf.edu,tom.florin@my.uwrf.edu,
* andrew.kathan@my.uwrf.edu,kong.xiong-1@my.uwrf.edu
* @date December 1st,2011*/
public interface LayerKeyEvent {
	/**
	 * Notifies the layer of a key event. The key event is guaranteed to be on this layer.
	 * @param ev The event
	 */
	public void keyEvent(int keyCode, KeyEvent ev);
	/**
	 * Allows the Layer to specify if the keyboard should be shown. This method is called after the Layer.layerInFocus() method.
	 * @return
	 */
	public boolean showKeyboard();
}
